#ifndef NAVMENUFORM_H
#define NAVMENUFORM_H

#include <QWidget>

#include "demoudleform.h"
#include "ddmsform.h"
#include "configform.h"
#include "dataanaysisform.h"
#include "recordform.h"
#include "HistoryForm.h"
#include "HistoryForm_1.h"
#include "HistoryForm_2.h"
#include "workplatform.h"
#include "utils\DemoduleUtil.h"

namespace Ui {
class NavMenuForm;
}

extern DemoduleUtil *demoduleUtil; //解调主程序
extern HistoryForm_1 *hf_1;
extern HistoryForm_2 *hf_2;
extern DemoudleForm *df;
extern ConfigForm *cf ;
extern HistoryForm *hf ;
//extern WorkPlatForm *wpl;
extern DdmsForm *ddms; //导向钻进DDMS
class NavMenuForm : public QWidget
{
    Q_OBJECT

public:
    explicit NavMenuForm(QWidget *parent = nullptr);
    ~NavMenuForm();
    DataAnaysisForm *da = new DataAnaysisForm();
    RecordForm *rf = new RecordForm();
//    DdmsForm *ddms = new DdmsForm();
    void showDecData(QString decData);
    void showSignalInfo(double singnal);
    void closeEvent(QCloseEvent *e);
    void acceptMessage(QList<double> list1);
    void acceptMessage123();
    void acceptMessage1(FIFO_Receiver fifoReceiver1 );
    double tempArray[RECEIVE_BUF_SIZE];
private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();



private:
    Ui::NavMenuForm *ui;
    int count = 0;
    void Float_HEX (float fdata, unsigned char *hdata);
   // HistoryForm_1 *hf_1 = new HistoryForm_1();
};

#endif // NAVMENUFORM_H
